﻿using M.Warehouse.Repository.WarehouseImpl;
using M.Warehouse.Repository.WarehouseInterface;
//using M_Ingredient.Repository.Impl;
//using M_Ingredient.Repository.Interface;

namespace M.Warehouse.API.Extensions
{
    public static class ServiceCollectionExtensions
    {
        /// <summary>
        /// 注册仓储静态类
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddService(this IServiceCollection services)
        {
            services.AddScoped<IWarehouseWRepository, WarehouseWRepository>();
            services.AddScoped<IReservoirsWRepository, ReservoirsWRepository>();
            services.AddScoped<IBinLocationsRepository, BinLocationsRepository>();
            services.AddScoped<IInventoryRepository, InventoryRepository>();
            services.AddScoped<IPickingRepository, PickingRepository>();
            //services.AddScoped<IIngredientRepository, IngredientRepository>();
            services.AddScoped<IFinishedProductRepository, FinishedProductRepository>();
            return services;
        }
    }
}
